//
//  Common.swift
//  新浪微博-Swift
//
//  Created by 周李波 on 16/7/20.
//  Copyright © 2016年 q. All rights reserved.
//

import UIKit

//微博账号
let WEIBONAME = "15356724804"
let WEIBOPASSWORD = "asd123123a"
// 新浪微博相关信息
let APPKEY = "3447162988"
let APPSECRET = "2414f2e4b16e75a923ef5e8935f7f038"
// 回调页
let APPREDIRECT_URI = "http://www.baidu.com"

//主题颜色
let ThemeColor = UIColor.orangeColor()
//屏幕
let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height
//RGB
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha:CGFloat = 1) -> UIColor{
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)
}

func RandomColor() ->UIColor{
    let red = random()%256
    let green = random()%256
    let blue = random()%256
    return RGB(CGFloat(red), green: CGFloat(green), blue: CGFloat(blue))
}






